package com.chii.color.service.impl;

import com.chii.color.mapper.ConfigMapper;
import com.chii.color.po.Config;
import com.chii.color.service.ConfigSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ConfigSeviceImpl implements ConfigSevice {
    @Autowired
    private ConfigMapper configMapper;

    @Override
    public Config getBaseConfig() {
        return configMapper.selectByPrimaryKey(1);
    }

    @Override
    public int setBaseConfig(Config config) {
        return configMapper.updateByPrimaryKeySelective(config);
    }
}
